package c2.cross.business.arena.data;

import c2.advanced.business.base.KvData;
import cate.game.pvp.arena.core.ArenaRoleSnapshot;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

import java.util.concurrent.ConcurrentHashMap;

@NoteClass("跨服擂台赛-跨服主数据")
public class ArenaMainKV extends KvData {
    @NoteField("下一次结算时间")
    public long nextSettleTime;
    @NoteField("所有参与人信息")
    public ConcurrentHashMap<String, ArenaRoleSnapshot> infoMap;

    @Override
    public void init(String theKey) {
        super.init(theKey);
        if (infoMap == null) {
            infoMap = new ConcurrentHashMap<>();
        }
    }
}
